16. Exercise: Toying with FavoriteToys

Toying with FavoriteToys Exercise

Toying with FavoriteToys

In this exercise you'll visualize the contents of the ToyNames array.

Exercise Code

Exercise: T01.02-Exercise-DisplayToyList

Exercise Two: Toying with FavoriteToys

Open Exercise 2 and complete all the TODOs. We really do want to do this in order.

SOLUTION:
  • Add an ID to the TextView in the layout
  • Find the ID for the TextView in the MainActivity.java source
  • Append the contents of our ToyNames string array to the TextView, followed by three line separators.